<%@ page language="java" import="java.util.*,news.dao.*,news.entity.*"
	pageEncoding="utf-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>新闻发布系统管理后台</title>
<!-- // 登陆验证 -->
	<c:if test="${empty users}">
	<script >alert('请先登陆');location='indexServlet';</script>;
	</c:if>
	
<!-- //反馈删除成功修改成功的信息 -->
   <c:if test="${! empty fankui}">
   <script >alert("${fankui}")</script> 

  </c:if>
  <c:remove var="fankui" />
<link href="css/admin.css" rel="stylesheet" type="text/css" />
<div id="header">
	<div id="welcome">欢迎使用新闻管理系统！</div>
	<div id="nav">
		<div id="logo">
			<img src="images/logo.jpg" alt="新闻中国" />
		</div>
		<div id="a_b01">
			<img src="images/a_b01.gif" alt="" />
		</div>
	</div>
</div>
<div id="admin_bar">
	<div id="status">
		管理员： admin 登录 &#160;&#160;&#160;&#160; <a href="../util/do_logout.jsp">login
			out</a>&#160;&#160;&#160;&#160;<a href="indexServlet">返回首页</a>
	</div>
	<div id="channel"></div>
</div>
</head>
<body>

	<div id="main">
	<%@include file="console_element/left.jsp"%>

		<div id="opt_area">
			<script language="javascript">
				function clickdel() {
					return confirm("删除请点击确认");
				}
			</script>
			<ul class="classlist">

			<c:forEach items="${page.datas}" var="p" varStatus="v">

				<li>${p.ntitle}<span> 作者：${p.nauthor}
						&#160;&#160;&#160;&#160; <a
						href='modifynews?nid=${p.nid}'>修改</a>
						&#160;&#160;&#160;&#160; <a
						href='deletenews?nid=${p.nid}'
						onclick='return clickdel()'>删除</a>
				</span></li>
				 <c:if test="${v.count%5==0 }"><li class='space'></li></c:if>
				 </c:forEach>
				
 <p align="right">当前页数:[${page.pageNo}/${page.pageNums}]
 <c:if test="${page.pageNo > 1}">
 
 &nbsp;<a href="adminnews?ntid=${ntid}&pageNo=${page.pageNo-1}">上一页</a>
 </c:if>
 <c:if test="${page.pageNo < page.pageNums}">
 
 &nbsp;<a href="adminnews?ntid=${ntid}&pageNo=${page.pageNo+1}">下一页</a>
 </c:if>
				</p>地图</a><span>|</span>
			<a href="#">留言反馈</a>
		</div>
		<div id="footer">
			<p class="">
				24小时客户服务热线：010-68988888 &#160;&#160;&#160;&#160; <a href="#">常见问题解答</a>
				&#160;&#160;&#160;&#160; 新闻热线：010-627488888<br />
				文明办网文明上网举报电话：010-627488888 &#160;&#160;&#160;&#160; 举报邮箱：<a href="#">jubao@jb-aptech.com.cn</a>
			</p>
			<p class="copyright">
				Copyright &copy; 1999-2009 News China gov, All Right Reserver<br />
				新闻中国 版权所有
			</p>
		</div>
</body>
</html>